home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1997 September
/
Macworld (1997-09).dmg
/
Shareware World
/
Comms & Internet
/
SB114
/
Plugin Docs
/
Plugin Language Changes
< prev
next >
Wrap
Text File
|
1997-05-27
|
1KB
|
46 lines
ShadowBotScripting Language, Version 1.1.2
© John Bafford, 1997
This document describes the changes in the plugins language between ShadowBot 1.1.1 and 1.1.2.
Scripting Commands Changes
@GETARGS <numArgs>
Causes ShadowBot to process the command's arguments. Returns the number of arguments found (equal to or less than numArgs) in the variable $NUMARGS.
Example:
!command arg1 arg2 arg3 arg4
@GETARGS 3
$ARG1 = 'arg1'
$ARG2 = 'arg2'
$ARG3 = 'arg3 arg4'
$NUMARGS = 3
@GETARGS 5
$ARG1 = 'arg1'
$ARG2 = 'arg2'
$ARG3 = 'arg3'
$ARG4 = 'arg4'
$NUMARGS = 4
@IF command: when checking strings, you must put double quotes around both strings:
Before: @IF "$ARG1" = blah goto else
Now: @IF "$ARG1" = "blah" goto else
Script Configuration Changes
*COMMAND no longer takes a numArgs parameter.
*MAXRUNNING <number>
If this configuration command is found, and number > 0, the last *COMMAND or *ONTEXT is limited to number simultaneous executions.
Script Variable Changes
$NUMARGS - the number of arguments returned after a call to @GETARGS. $NUMARGS is -1
before this point.
$ARGL - returns the argument list.
$ARGx - $ARG0 returns the command name used. After processing with @GETARGS,
$ARGx, 1 < x < 10 returns the xth argument. If there is no xth argument,
$ARGx returns an empty string.